package com.six.biz.impl.settings;

import java.io.IOException;
import java.util.List;

import com.six.biz.ICustomerManagementBiz;
import com.six.dao.ICustomerDao;
import com.six.dao.impl.settings.ICustomerDaoImpl;
import com.six.vo.Customer;

public class ICustomerManagementBizImpl implements ICustomerManagementBiz {
	private ICustomerDao iCustomerDao = new ICustomerDaoImpl();
	@Override
	public void saveCustomer(Customer c) throws IOException,
			InterruptedException {
		// TODO Auto-generated method stub
		iCustomerDao.saveCustomer(c);
	}

	@Override
	public void updateCustomer(Customer c) {
		// TODO Auto-generated method stub
		iCustomerDao.updateCustomer(c);
	}

	@Override
	public void deleteCustomer(int cid) throws Exception {
		// TODO Auto-generated method stub
		iCustomerDao.deleteCustomer(cid);
	}

	@Override
	public Customer findCustomerById(int cid) {
		// TODO Auto-generated method stub
		return iCustomerDao.findCustomerById(cid);
	}

	@Override
	public void revertCustomer(int cid) throws Exception {
		// TODO Auto-generated method stub
		iCustomerDao.revertCustomer(cid);
	}

	@Override
	public List<Customer> findCustomers(int cid, String cname, int cicid) {
		// TODO Auto-generated method stub
		return iCustomerDao.findCustomers(cid, cname, cicid);
	}

	@Override
	public List<Customer> findCustomerByInputValue(String inputValue) {
		// TODO Auto-generated method stub
		return iCustomerDao.findCustomerByInputValue(inputValue);
	}

}
